gadgetgetimageypos#()
Description:
Get the vertical ( y ) position for the image in a gadgetimage() gadget.
Note: this command will only work with the gadgetimage() gadget.
Syntax:
Required syntax: |
| ypos/ypos# = gadgetgetimageypos#( gadgethandle )
|
Optional syntax: |
| ypos/ypos# = gadgetgetimagexpos#( gadgethandle , [ pixel_position ] )
|
Parameters:
Required parameters |
Description |
|
| gadgethandle | The handle to the gadgetimage´s image, you wish to get the vertical position of | |
Optional parameters |
Description |
Default |
| pixel_position | Boolean value to set if the returned value should be in
percentage down, or pixels down (percentage down = 0 / pixels down = 1) |
0 |
Returns:
Either a real number as percentage down (0.5 = 50 % = halfway down )
Or an integer as pixels down
Example: